package com.yuyue.dronesystem.beans;

import com.yuyue.dronesystem.enums.PlaceType;

/**
 * Post
 */
public class Post extends Site {

    public Post() {
    }

    public Post(Double longitude, Double latitude, String name, String note) {
        super(longitude, latitude, 0.0, name, note, PlaceType.POST);
    }

    public Post(Double longitude, Double latitude, Double altitude, String name, String note) {
        super(longitude, latitude, altitude, name, note, PlaceType.POST);
    }

    @Override
    public boolean equals(Object o) {
        if (o == this)
            return true;
        if (!(o instanceof Post)) {
            return false;
        }
        return super.equals((Site) o);
    }

    @Override
    public int hashCode() {
        return super.hashCode();
    }

    @Override
    public String toString() {
        return "{" +
        " post='" + super.toString() + "'" +
        "}";
    }
}